package com.shuyuwl.utils;

import lombok.extern.slf4j.Slf4j;

import java.util.Arrays;
import java.util.List;

/**
 * @author liaokx
 * @date 2019/11/27 17:29
 */
@Slf4j
public enum ExcelHead {
    USER_HEAD ("用户名", "用户昵称", "性别","电话","邮箱","创建时间","状态"),
    ROLE_HEAD ("标识", "名称", "创建时间","更新时间","状态"),
    PERMISSION_HEAD ("菜单名称","访问地址","菜单类型","权限标识","状态"),
    DEPT_HEAD ("部门名称","机构类型","父级机构","状态"),
    DICT_HEAD ("字典标识","字典类型","字典标题","字典值","创建时间","更新时间"),
    LOG_HEAD ("日志名称","日志类型","日志消息","IP地址","操作人","记录时间");

    private List<String> head;


    ExcelHead(String... head){
        this.head= Arrays.asList(head);
    }


    /**
     * 定义方法,返回描述,跟常规类的定义没区别
     * @return
     */
    public List<String> getHead(){
        return head;
    }

    public static void main(String[] args){
        for (ExcelHead value: ExcelHead.values()) {
            log.info("name:"+value.name()+
                    ",head:"+value.getHead());
        }
    }
}
